package com.takeoff.iot.modbus.common.utils;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

/**
 * 类功能说明：Bytes与Hex转换工具类<br/>
 * 公司名称：未可自动化 <br/>
 * 作者：weikeauto <br/>
 */
public class CacheShebeiUtilsqqqq {

	//键值对集合
    private final static Map<String, String> map = new HashMap<>();

    public static synchronized void put(String key, String data) {
        map.put(key, data);
    }

    public  static synchronized String get(String key) {
        return map.get(key);
    }
 
    public static synchronized void remove(String key) {
        //清除原缓存数据
        map.remove(key);
    }
 

}
